/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dealer.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 代理经销商信息Entity
 * @author jyangye
 * @version 2018-02-12
 */
public class ViAgenterTerminal extends DataEntity<ViAgenterTerminal> {
	
	private static final long serialVersionUID = 1L;
	private String dealerrationid;		// 经销商关系
	private String dealerid;		// 经销商ID
	private Area area;		// 区域ID
	private String agenterid;		// 代理商ID
	private String bysystemid;		// 所属系统ID
	private String terminaltype;		// 终端类型
	private String marketlevelid;		// 市场层级ID
	private String ditchtypeid;		// 合作运营商类型ID
	private String terminallevelid;		// 终端级别ID
	private String jointype;		// 加入类型
	private String shoretype;		// 门店类型
	private String dealercode;		// 经销商编号
	private String dealername;		// 经销商名称
	private String agentername1;		// 一级代理
	private String agentername2;		// 二级代理
	private String agentername3;		// 三级代理
	private String agentername4;		// 四级代理
	private String byagentname;		// 所属代理名称
	private String levelcode;		// 级别编号
	private String isclosed;		// 是否关闭
	private String bysystemname;		// 所属系统名称
	private String terminaltypename;		// 终端类型名称
	private String marketlevelname;		// 市场层级名称
	private String dealerclientkindname;		// 客户经销商种类名称
	private String ditchtypename;		// 运营商名称
	private String terminallevelname;		// 门店级别名称
	private String jointypename;		// 加入类型名称
	private String storetypename;		// 门店类型名称
	private String dealertype;		// 经销商类型
	private String isself;		// isself
	
	public ViAgenterTerminal() {
		super();
	}

	public ViAgenterTerminal(String id){
		super(id);
	}

	@Length(min=0, max=11, message="经销商关系长度必须介于 0 和 11 之间")
	@ExcelField(title="经销商关系", align=2, sort=20)
	public String getDealerrationid() {
		return dealerrationid;
	}

	public void setDealerrationid(String dealerrationid) {
		this.dealerrationid = dealerrationid;
	}
	
	@Length(min=0, max=11, message="经销商ID长度必须介于 0 和 11 之间")
	@ExcelField(title="经销商ID", align=2, sort=30)
	public String getDealerid() {
		return dealerid;
	}

	public void setDealerid(String dealerid) {
		this.dealerid = dealerid;
	}
	
	@ExcelField(title="区域ID", align=2, sort=40)
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=11, message="代理商ID长度必须介于 0 和 11 之间")
	@ExcelField(title="代理商ID", align=2, sort=50)
	public String getAgenterid() {
		return agenterid;
	}

	public void setAgenterid(String agenterid) {
		this.agenterid = agenterid;
	}
	
	@Length(min=0, max=32, message="所属系统ID长度必须介于 0 和 32 之间")
	@ExcelField(title="所属系统ID", align=2, sort=60)
	public String getBysystemid() {
		return bysystemid;
	}

	public void setBysystemid(String bysystemid) {
		this.bysystemid = bysystemid;
	}
	
	@Length(min=0, max=32, message="终端类型长度必须介于 0 和 32 之间")
	@ExcelField(title="终端类型", align=2, sort=70)
	public String getTerminaltype() {
		return terminaltype;
	}

	public void setTerminaltype(String terminaltype) {
		this.terminaltype = terminaltype;
	}
	
	@Length(min=0, max=32, message="市场层级ID长度必须介于 0 和 32 之间")
	@ExcelField(title="市场层级ID", align=2, sort=80)
	public String getMarketlevelid() {
		return marketlevelid;
	}

	public void setMarketlevelid(String marketlevelid) {
		this.marketlevelid = marketlevelid;
	}
	
	@Length(min=0, max=32, message="合作运营商类型ID长度必须介于 0 和 32 之间")
	@ExcelField(title="合作运营商类型ID", align=2, sort=90)
	public String getDitchtypeid() {
		return ditchtypeid;
	}

	public void setDitchtypeid(String ditchtypeid) {
		this.ditchtypeid = ditchtypeid;
	}
	
	@Length(min=0, max=32, message="终端级别ID长度必须介于 0 和 32 之间")
	@ExcelField(title="终端级别ID", align=2, sort=100)
	public String getTerminallevelid() {
		return terminallevelid;
	}

	public void setTerminallevelid(String terminallevelid) {
		this.terminallevelid = terminallevelid;
	}
	
	@Length(min=0, max=32, message="加入类型长度必须介于 0 和 32 之间")
	@ExcelField(title="加入类型", align=2, sort=110)
	public String getJointype() {
		return jointype;
	}

	public void setJointype(String jointype) {
		this.jointype = jointype;
	}
	
	@Length(min=0, max=32, message="门店类型长度必须介于 0 和 32 之间")
	@ExcelField(title="门店类型", align=2, sort=120)
	public String getShoretype() {
		return shoretype;
	}

	public void setShoretype(String shoretype) {
		this.shoretype = shoretype;
	}
	
	@Length(min=0, max=32, message="经销商编号长度必须介于 0 和 32 之间")
	@ExcelField(title="经销商编号", align=2, sort=130)
	public String getDealercode() {
		return dealercode;
	}

	public void setDealercode(String dealercode) {
		this.dealercode = dealercode;
	}
	
	@Length(min=0, max=64, message="经销商名称长度必须介于 0 和 64 之间")
	@ExcelField(title="经销商名称", align=2, sort=140)
	public String getDealername() {
		return dealername;
	}

	public void setDealername(String dealername) {
		this.dealername = dealername;
	}
	
	@Length(min=0, max=64, message="一级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="一级代理", align=2, sort=150)
	public String getAgentername1() {
		return agentername1;
	}

	public void setAgentername1(String agentername1) {
		this.agentername1 = agentername1;
	}
	
	@Length(min=0, max=64, message="二级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="二级代理", align=2, sort=160)
	public String getAgentername2() {
		return agentername2;
	}

	public void setAgentername2(String agentername2) {
		this.agentername2 = agentername2;
	}
	
	@Length(min=0, max=64, message="三级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="三级代理", align=2, sort=170)
	public String getAgentername3() {
		return agentername3;
	}

	public void setAgentername3(String agentername3) {
		this.agentername3 = agentername3;
	}
	
	@Length(min=0, max=64, message="四级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="四级代理", align=2, sort=180)
	public String getAgentername4() {
		return agentername4;
	}

	public void setAgentername4(String agentername4) {
		this.agentername4 = agentername4;
	}
	
	@Length(min=0, max=64, message="所属代理名称长度必须介于 0 和 64 之间")
	@ExcelField(title="所属代理名称", align=2, sort=190)
	public String getByagentname() {
		return byagentname;
	}

	public void setByagentname(String byagentname) {
		this.byagentname = byagentname;
	}
	
	@Length(min=0, max=32, message="级别编号长度必须介于 0 和 32 之间")
	@ExcelField(title="级别编号", align=2, sort=200)
	public String getLevelcode() {
		return levelcode;
	}

	public void setLevelcode(String levelcode) {
		this.levelcode = levelcode;
	}
	
	@Length(min=0, max=1, message="是否关闭长度必须介于 0 和 1 之间")
	@ExcelField(title="是否关闭", align=2, sort=210)
	public String getIsclosed() {
		return isclosed;
	}

	public void setIsclosed(String isclosed) {
		this.isclosed = isclosed;
	}
	
	@Length(min=0, max=32, message="所属系统名称长度必须介于 0 和 32 之间")
	@ExcelField(title="所属系统名称", align=2, sort=220)
	public String getBysystemname() {
		return bysystemname;
	}

	public void setBysystemname(String bysystemname) {
		this.bysystemname = bysystemname;
	}
	
	@Length(min=0, max=32, message="终端类型名称长度必须介于 0 和 32 之间")
	@ExcelField(title="终端类型名称", align=2, sort=230)
	public String getTerminaltypename() {
		return terminaltypename;
	}

	public void setTerminaltypename(String terminaltypename) {
		this.terminaltypename = terminaltypename;
	}
	
	@Length(min=0, max=32, message="市场层级名称长度必须介于 0 和 32 之间")
	@ExcelField(title="市场层级名称", align=2, sort=240)
	public String getMarketlevelname() {
		return marketlevelname;
	}

	public void setMarketlevelname(String marketlevelname) {
		this.marketlevelname = marketlevelname;
	}
	
	@Length(min=0, max=32, message="客户经销商种类名称长度必须介于 0 和 32 之间")
	@ExcelField(title="客户经销商种类名称", align=2, sort=250)
	public String getDealerclientkindname() {
		return dealerclientkindname;
	}

	public void setDealerclientkindname(String dealerclientkindname) {
		this.dealerclientkindname = dealerclientkindname;
	}
	
	@Length(min=0, max=32, message="运营商名称长度必须介于 0 和 32 之间")
	@ExcelField(title="运营商名称", align=2, sort=260)
	public String getDitchtypename() {
		return ditchtypename;
	}

	public void setDitchtypename(String ditchtypename) {
		this.ditchtypename = ditchtypename;
	}
	
	@Length(min=0, max=32, message="门店级别名称长度必须介于 0 和 32 之间")
	@ExcelField(title="门店级别名称", align=2, sort=270)
	public String getTerminallevelname() {
		return terminallevelname;
	}

	public void setTerminallevelname(String terminallevelname) {
		this.terminallevelname = terminallevelname;
	}
	
	@Length(min=0, max=32, message="加入类型名称长度必须介于 0 和 32 之间")
	@ExcelField(title="加入类型名称", align=2, sort=280)
	public String getJointypename() {
		return jointypename;
	}

	public void setJointypename(String jointypename) {
		this.jointypename = jointypename;
	}
	
	@Length(min=0, max=32, message="门店类型名称长度必须介于 0 和 32 之间")
	@ExcelField(title="门店类型名称", align=2, sort=290)
	public String getStoretypename() {
		return storetypename;
	}

	public void setStoretypename(String storetypename) {
		this.storetypename = storetypename;
	}
	
	@Length(min=0, max=1, message="经销商类型长度必须介于 0 和 1 之间")
	@ExcelField(title="经销商类型", align=2, sort=300)
	public String getDealertype() {
		return dealertype;
	}

	public void setDealertype(String dealertype) {
		this.dealertype = dealertype;
	}
	
	@Length(min=0, max=32, message="isself长度必须介于 0 和 32 之间")
	@ExcelField(title="isself", align=2, sort=310)
	public String getIsself() {
		return isself;
	}

	public void setIsself(String isself) {
		this.isself = isself;
	}
	
}